<template>
  <div class='container'>
    <h2>{{showForm.title}}</h2>
    <div>
      <span>{{showForm.createTime | dateFormat}}</span>&nbsp;&nbsp;&nbsp;
      <span>{{showForm.username}}</span>&nbsp;&nbsp;&nbsp;
      <i class="el-icon-view"></i>&nbsp;&nbsp;&nbsp;
      <span>{{showForm.visits}}</span>
    </div>
    <p class="se"
       v-html="showForm.articleBody">{{showForm.articleBody}}</p>
  </div>
</template>
<script>
// import { update } from '@/api/hmmm/articles'

export default {
  name: 'ArticlesPreview',
  components: {},
  props: {
    showForm: {
      type: [Object, Array, String],
      required: true
    }
  }
}
</script>

<style scoped>
.container {
  padding: 10px;
}
.flex-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.se {
  height: 80px;
  line-height: 50px;
  text-indent: 8px;
  background-color: #eee;
  border-top: 1px dashed #ccc;
}
</style>
